﻿@model Rezene.Web.Models.EditGalleryViewModel

<div class="span12">
    @using (Html.BeginForm("EditGallery", "Editor", FormMethod.Post))
    {
        @Html.HiddenFor(m => m.Path)
        <fieldset>
            <legend>@Model.Name</legend>
            <label>Title</label>
            @Html.TextBoxFor(t => t.Title)
            <label class="checkbox">
                @Html.CheckBoxFor(t => t.Show) Show
            </label>
            <div class="row">
                <div class="span2">
                    <button class="btn btn-danger" onclick="window.history.back()">Cancel</button>
                    <button class="btn btn-default" type="submit">Update</button>    
                </div>
            </div>                                
        </fieldset>
    }
</div>